package com.msun.dao;

import com.msun.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    public void add(Order order);

    public List<Order> findByCondition(Order order);
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(String date);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<Map> findHotSetmeal();

    void edit(@Param("id") Integer OrderId,@Param("memberId") Integer memberId,@Param("orderDate") String orderDate,@Param("orderType") String orderType,@Param("orderStatus") String orderStatus);
    // 查询会员指定日期的预约订单
    public List<Order> findHisSetmeal4Date(@Param("map") Map<String,String> map);
    public Map<String,Object> findOrderDetail4MemberHisById(Integer id);

    Order findOrderById(Integer id);


    // 根据会员id查数据
    public List<Order> findByMemberId(Integer memberId);

    public List<Map> findHotSetmeal2();
}
